Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@rimbu/hashed
Advanced tools
This package contains the implementation for the HashMap
and HashSet
types, which form the basis of all Rimbu Hashed collections. The collections use a Hasher
instance that is configurable to determine the equality of values/objects.
This package exports the following main types:
Name | Description |
---|---|
HashMap<K, V> | a map with entries of key type K and value type V, where keys are hashed with a Hasher |
HashSet<T> | a set of value type T where items are hashed with a Hasher |
For complete documentation please visit the Rimbu Docs.
All types are exported through @rimbu/core
. It is recommended to use this package.
To install separately:
yarn add @rimbu/hashed
or
npm i @rimbu/hashed
Rimbu uses advanced and recursive typing, potentially making the TypeScript compiler quite slow in some cases, or causing infinite recursion. It is recommended to set the following values in the tsconfig.json
file of your project:
{
// ...
"compilerOptions": {
// ...
"skipLibCheck": true,
"noStrictGenericChecks": true
}
}
import { HashSet } from '@rimbu/hashed';
console.log(HashSet.of(1, 3, 2, 4, 3, 1).toString());
Feel very welcome to contribute to further improve Rimbu. Please read our Contributing guide.
Made with contributors-img.
Licensed under the MIT License, Copyright © 2020-present Arvid Nicolaas.
See LICENSE for more information.
FAQs
Immutable HashMap and HashSet implementations for TypeScript
The npm package @rimbu/hashed receives a total of 2,463 weekly downloads. As such, @rimbu/hashed popularity was classified as popular.
We found that @rimbu/hashed demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.